import {CurrentUser} from "../models/user";
import requestApi from "../plugins/requestApi.ts";
import {useRoute, useRouter} from "vue-router";

const router = useRouter();
const getCurrentUser = async (): CurrentUser => {
    const res = await requestApi.get('/user/current');
    if (res) {
        return res;
    }
}
export default getCurrentUser;